package cn.chinaunicom.fast.common.exception;

import lombok.Getter;

@Getter
public enum SystemErrorType implements ErrorType {

    SYSTEM_ERROR("500", "系统异常"),
    SYSTEM_BUSY("501", "系统繁忙,请稍候再试"),
    GATEWAY_CONNECT_TIME_OUT("502", "网关超时"),
    ARGUMENT_NOT_VALID("503", "请求参数校验不通过"),
    GATEWAY_NOT_FOUND_SERVICE("504", "服务未找到"),
    INVALID_TOKEN("505", "无效token"),
    UPLOAD_FILE_SIZE_LIMIT("506", "上传文件大小超过限制"),
    DUPLICATE_PRIMARY_KEY("507","唯一键冲突"),
    GATEWAY_ERROR("508", "网关异常"),
    XSS_INJECTION("509", "包含特殊字符"),
    USER_EXPORED_ERROR("416", "用户已过期"),
    USER_NOOPEN_ERROR("417", "用户未开通");

    /**
     * 错误类型码
     */
    private String code;
    /**
     * 错误类型描述信息
     */
    private String mesg;

    SystemErrorType(String code, String mesg) {
        this.code = code;
        this.mesg = mesg;
    }
}
